package com.neoCalf.neoUser.feigns;

import com.neoCalf.neoCommon.model.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.constraints.NotEmpty;

/**
 * @author 小牛
 * @version 1.0
 * @description TODO
 * @date 2025/4/8 17:08
 */
@FeignClient(value = "notifyService", path = "/api")
public interface NotifyServiceFeign {
    /**
     * 发送手机消息
     */
    @PostMapping("/notify/phone")
    String sendMessage(@RequestParam("phone") @NotEmpty String phone);

    /**
     * 发送邮件
     */
    @PostMapping("/notify/email")
    R<String> sendEmail(@RequestParam("email") @NotEmpty String email);
}